package com.echat.business.home.service;


import com.baomidou.mybatisplus.service.IService;
import com.echat.business.home.model.SysThirdUser;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chentl123
 * @since 2019-05-28
 */
public interface ISysThirdUserService extends IService<SysThirdUser> {

    /**
     * @return int
     * @author chentl
     * @description 根据第三方唯一id 查找库中第三方账户是否存在
     * @date 2019/8/1 10:27
     * @params [thirdId]
     * @since JDK 1.7
     */
    int selectCountByThirdId(Integer thirdId);

    /**
     * @return com.echat.business.home.model.SysThirdUser
     * @author chentl
     * @description 根据 username 获取第三方账号
     * @date 2019/8/1 15:01
     * @params [username]
     * @since JDK 1.7
     */
    SysThirdUser selectByUserName(String username);

}
